<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateDistributionStatisticsTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('distribution_statistics', function (Blueprint $table) {
            $table->increments('id');
            $table->date('date')->nullable();
            $table->integer('type')->default(1);
            $table->integer('user_id')->nullable();
            $table->integer('pairing_number')->default(0);
            $table->integer('verify_number')->default(0);
            $table->integer('shipping_number')->default(0);
            $table->text('json')->nullable();
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('distribution_statistics');
    }
}
